<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="ckeditor.js" type="text/javascript" charset="utf-8"></script>
		
		<script src="jquery-1.12.4.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
	
		
				
			$(function(){
				CKEDITOR.instances.TextArea1.setData("a5d4a6s4d");
			})
			
			function test() {　　　
				var val = CKEDITOR.instances.TextArea1.getData();
				if(val.length == 0) {
					alert(val);
				} else {
					alert(val);
				}
			}
			
			function fuzhi(){
				CKEDITOR.instances.TextArea1.setData("sss"); 
			}
			
		</script>
	</head>
	<body>
		
		<div style="width: 700px;">
			<textarea id="TextArea1" cols="20" rows="2" class="ckeditor" name="content">
				145646
				</textarea></div>
		<input type="button" class="selectButton" value="获取内容" onclick="test();" />
			<input type="button" class="selectButton" value="获取内容" onclick="fuzhi();" />
	</body>

</html>